<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>CSS3变形</title>
    <style type="text/css">
        div{
            width: 100px;
            height: 100px;
            background: pink;
            text-align: center;
            line-height: 100px;
            font-size: 30px;
            margin: 50px;
            float: left;
        }
        .translate{background: yellow;}
        .scale{background: skyblue;}
        .rotate:hover{transform: rotate(45deg);}
        .translate:hover{transform: translate(30px,30px);}
        .scale:hover{transform: scale(0.6);}
    </style>
</head>
<body>
    <div class="rotate">旋转</div>
    <div class="translate">移动</div>
    <div class="scale">缩放</div>
</body>
</html>